package com.bdhub.handld;

import com.bdhub.interfaces.StatusEventHandle;

public class NetStatusCallback {
	private StatusEventHandle eventHandle = null;

	public NetStatusCallback(StatusEventHandle eventHandle) {
		this.eventHandle = eventHandle;
	}

	public void setEventHandle(StatusEventHandle eventHandle) {
		this.eventHandle = eventHandle;
	}

	public void setStatus(int status) {
		try {
			eventHandle.run(status);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}
